package hy.iot.core.handler;

import hy.iot.core.entity.IMessage;
import io.netty.channel.Channel;

import java.lang.reflect.Method;

/**
 * 简单同步处理
 * @author lcc
 */
public class SimpleHandler extends Handler {

    public SimpleHandler(Object actionClass, Method actionMethod, String desc, boolean async) {
        super(actionClass, actionMethod, desc, async);
    }

    public <T extends IMessage> T invoke(T request, Channel session) throws Exception {
        return super.invoke(request, session);
    }
}